package com.yang.designmode.ActionMode.strategy;
// 具体策略类 银行卡支付
public class CreditCardPayment implements PaymentStrategy {
    @Override
    public void pay(int amount) {
        System.out.println("Paid " + amount + " via Credit Card.");
    }
}